import React, { Component } from 'react'

export class AddCount extends Component {

  addHandle (num) {
    this.props.addClick(num)
  }
  render () {
    return (
      <div>
        <button onClick={() => this.addHandle(1)}>+1</button>
        <button onClick={() => this.addHandle(5)}>+5</button>
        <button onClick={() => this.addHandle(10)}>+10</button>
      </div>
    )
  }
}

export default AddCount